package java_thinking.unit_21._21_7;

/**
 * @Desc:   7-23 典型的线程池工作者线程结构，如果任务抛出了一个未检查异常，那么
 *               它将使线程终结，但会首先通知框架该线程已经终结
 * @author: cww
 * @DateTime: 2019-06-16 19:57
 */

public class TypicalThreadPool extends Thread{
    /**
     * @Override
     * public void run() {
     *     try {
     *         while (!isInterrupted()) {
     *             runTask(getTaskFromWorkQueue());
     *         }
     *     } catch (Throwable e) {
     *         thrown = e;
     *     } finally {
     *         threadExited(this, thrown);
     *     }
     * }
     */

}
